from flask import Blueprint
from flask_restx import Api

from app.apis.chatrooms import ns as chatrooms_ns
#from app.apis.friends import ns as friends_ns
#from app.apis.users import ns as users_ns

api_bp = Blueprint('api', __name__)
api = Api(
        app = api_bp,
        version='1.0',
        title = 'Chatroom API',
        description='A simple function of chatonline',
        doc='/swagger',)

#api.add_namespace(users_ns)
api.add_namespace(chatrooms_ns)
#api.add_namespace(friends_ns)
